﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace AdminFrame.Domain.Parameters
{
    public interface IParameterRepository : IRepository<Parameter, Guid>
    {
        Task<Parameter> FindByCodeAsync(string code);

        Task<bool> CodeExistsAsync(string code, Guid? ignoredId = null);

        Task<List<Parameter>> GetListAsync(
            string filter = null,
            int maxResultCount = int.MaxValue,
            int skipCount = 0,
            string sorting = null);
    }
}